package org.emergency.framework.common;

import java.util.List;

import org.emergency.framework.model.TbDepartment;
import org.emergency.framework.model.TbPermission;
import org.emergency.framework.model.TbRole;
import org.emergency.framework.model.TbUser;

/**
 * 系统用户Session实体
 * 
 * @author dgm
 * 
 */
public class UserSession {
	/**
	 * 当前系统用户
	 */
	private TbUser tbUser;

	/**
	 * 当前用户 ip
	 */
	private String ipAddress;

	/**
	 * 用户部门list
	 */
	private List<TbDepartment> tbDepartmentList;

	/**
	 * 用户权限
	 */
	private List<TbPermission> tbPermissionList;

	/**
	 * 用户的角色
	 */
	private List<TbRole> tbRoleList;


	public TbUser getTbUser() {
		return tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}


	public List<TbDepartment> getTbDepartmentList() {
		return tbDepartmentList;
	}

	public void setTbDepartmentList(List<TbDepartment> tbDepartmentList) {
		this.tbDepartmentList = tbDepartmentList;
	}

	public List<TbPermission> getTbPermissionList() {
		return tbPermissionList;
	}

	public void setTbPermissionList(List<TbPermission> tbPermissionList) {
		this.tbPermissionList = tbPermissionList;
	}

	public List<TbRole> getTbRoleList() {
		return tbRoleList;
	}

	public void setTbRoleList(List<TbRole> tbRoleList) {
		this.tbRoleList = tbRoleList;
	}

}
